package com.msb.mapper;

import com.msb.pojo.Book;

import java.util.List;

//映射文件相当于接口
public interface BookMapper {
    //抽象方法
    //查全部书
    public abstract List selectAllbooks();
    //查作者和名称都对应的那一本书
    public abstract Book selectonebook(String name,String author);
    public abstract Book selectonebook2(Book book);
    public abstract Book selectonebook3(String name,Book book);
    public abstract int insertbook(Book book);
    public abstract int deletebook(int n);
    public abstract int updatebook(double price);
}
